package videoDuration;


import java.io.IOException;


public class VideoUtilTest {


    public static void getDuration() throws IOException {
        String path = "D:\\springUpload\\hsj-test-8.mp4" ;
      /*  String path = "/Users/liuwen/Downloads/temp/语音测试文件/xiaoshizi.mp4" ;
        String path = "/Users/liuwen/Downloads/temp/语音测试文件/xiaoshizi.wav" ;
        String path = "/Users/liuwen/Downloads/temp/语音测试文件/xiaoshizi.mov" ;
        String path = "/Users/liuwen/Downloads/temp/语音测试文件/xiaoshizi.m4a" ;*/

        long result = VideoUtil.getDuration(path);
        System.out.println(result);
    }
    
    public static void main(String[] args) throws IOException {
    	getDuration();
	}

}